<ul class="clearfix">

	<{foreach from=$data item=item key=key name=pdata}>
	<{if $item.addon}> 
	<{assign var="href" value="index.php?app={$env.get.app}&ctl={$env.get.ctl}&act={$env.get.act}&view={$key}"}>
	<li class="<{if ($env.get.view && $env.get.view==$key)||(!$env.get.view&&$env.foreach.pdata.iteration==1)}>current<{/if}><{if $env.foreach.pdata.last}> last<{/if}><{if $item.addon == '_FILTER_POINT_'}> filter_point<{/if}>">
	 	<a href="<{$item.href|default:$href}>">
			<{if $item.addon == '_FILTER_POINT_'}>
			<span><{$item.label}></span></a>
			<i><{img src="bundle/finder_drop_arrow_close.gif" app="desktop"}></i>
			</li>
			<{else}>
			<span><{$item.label}>(<{$item.addon}>)</span>
			</a></li>
			<{/if}>
	<{/if}>
	<{/foreach}>  
</ul>

<script>
	
	$$('.finder-packet .filter_point').addEvents({
		'mouseenter':function(){
			this.getElement('i').setStyle('visibility','visible');
		},
		'mouseleave':function(){
			this.getElement('i').setStyle('visibility','hidden');
		}
	});
	$$('.finder-packet .filter_point i').addEvent('click',function(e){
			e.stop();
			alert('DELETE ACTION!');
	});	
</script>
